package oo.animal;

import java.util.Date;

public class Dog {
	public String name;
	public String owner;
	public Date birthday;
	public static int dogNumber = 100;

	public Dog() {
		super();
	}

	public Dog(String name, String owner) {
		super();
		this.name = name;
		this.owner = owner;
		System.out.println(name);
	}

	public Dog(String name, String owner, Date birthday) {
		super();
		this.name = name;
		this.owner = owner;
		this.birthday = birthday;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getOwner() {
		return owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	

	@Override
	public String toString() {
		return "Dog [name=" + name + ", owner=" + owner + ", birthday=" + birthday + "]";
	}

	public static void totalDogNumber() {
		dogNumber = 123;
		Dog d = new Dog();
		d.name = "xiaobai";
		String na = d.name;
		System.out.println(na);
	}

	public void test() {
		dogNumber = 222;
		name = "dasd";
		System.out.println(dogNumber + name);
	}
}
